//
//  clsBannerSetting.m
//  AntsExpress
//
//  Created by slccper on 16/1/2.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import "clsBannerSetting.h"
#import "clsOtherFun.h"
@implementation clsBannerSetting
- (id)initWithDic:(NSDictionary *)obj
{
    self = [super init];
    if (self) {
        for (int i=0; i<obj.allKeys.count; i++) {
            if ([self respondsToSelector: [clsOtherFun selectorForColumnName:obj.allKeys[i]]]) {
                [clsOtherFun ObjectSetValue:self :obj.allKeys[i] :obj.allValues[i]];
            }
        }
    }
    return self;
}
+ (NSMutableArray *)getArrWithList:(NSArray *)list
{
    NSMutableArray *arr = [NSMutableArray array];
    for (NSDictionary *dic in list) {
        clsBannerSetting *setting = [[clsBannerSetting alloc]initWithDic:dic];
        [arr addObject:setting];
    }
    return arr;
}
@end
